//
//  SCShareTextView.m
//  Shuaiche
//
//  Created by zzs on 2018/8/10.
//  Copyright © 2018年 zzs. All rights reserved.
//

#import "SCShareTextView.h"

@implementation SCShareTextView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)awakeFromNib{
    [super awakeFromNib];
    self.noCopyBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
    self.noCopyBtn.layer.borderWidth = 1;
}

- (IBAction)noCopyBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(shareTextViewDidClickNoCopy:)]){
        [self.delegate shareTextViewDidClickNoCopy:self];
    }
}

- (IBAction)copyBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(shareTextViewDidClickCopy:)]){
        [self.delegate shareTextViewDidClickCopy:self];
    }
}

- (IBAction)closeBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(shareTextViewDidClickClose:)]){
        [self.delegate shareTextViewDidClickClose:self];
    }
}
@end
